1: | dbl(0) | → 0 | |
2: | dbl(s(X)) | → s(s(dbl(X))) | |
3: | dbls(nil) | → nil | |
4: | dbls(cons(X,Y)) | → cons(dbl(X),dbls(Y)) | |
5: | sel(0,cons(X,Y)) | → X | |
6: | sel(s(X),cons(Y,Z)) | → sel(X,Z) | |
7: | indx(nil,X) | → nil | |
8: | indx(cons(X,Y),Z) | → cons(sel(X,Z),indx(Y,Z)) | |
9: | from(X) | → cons(X,from(s(X))) | |
10: | DBL(s(X)) | → DBL(X) | |
11: | DBLS(cons(X,Y)) | → DBL(X) | |
12: | DBLS(cons(X,Y)) | → DBLS(Y) | |
13: | SEL(s(X),cons(Y,Z)) | → SEL(X,Z) | |
14: | INDX(cons(X,Y),Z) | → SEL(X,Z) | |
15: | INDX(cons(X,Y),Z) | → INDX(Y,Z) | |
16: | FROM(X) | → FROM(s(X)) | |